RMDIR Statement ---------------------------------------------------------------------------- Action Removes an existing directory. Syntax RMDIR pathname$ Remarks The pathname$ is the name of the directory that is to be deleted. The pathname$ must be a string of fewer than 64 characters. The directory to be removed must be empty except for the working directory ( '.' ) and the parent directory ( '..' ); otherwise, BASIC generates one of two error messages, either Path not found or Path-File access error. RMDIR works like the DOS command of the same name. However, the syntax in BASIC cannot be shortened to RD, as it can in DOS. See Also CHDIR, MKDIR Example The following example shows how to use RMDIR to remove a subdirectory. CHDIR "C.\SALES\TEMP"' Move to \TEMP subdirectory in \SALES. KILL "*.*" ' Remove all files in \TEMP. CHDIR ".." ' Move back up to \SALES. RMDIR "TEMP"' Remove \TEMP subdirectory.